package com.estranger.www.bean;

import org.springframework.context.ApplicationEvent;

/**
 * @Created by michangtao
 * @Date 2021/11/4 10:04
 * @Description
 */
public abstract class BaseEvent<T> extends ApplicationEvent {

    private String eventType;

    private T eventData;


    public BaseEvent(Object source, T eventData, String eventType) {
        super(source);
        this.eventData = eventData;
        this.eventType = eventType;
    }

    public T getEventData() {
        return eventData;
    }

    public String getEventType() {
        return eventType;
    }

}
